import time

time_step_ = 0
def set_time_step(ts):
    import debug
    debug.time_step_ = ts
def printInfo(fields,i,j,k):
    print("%.30f"%(fields[i-1,j-1,k-1]))
def printValue(strLabel,value):
    print("%s:%.30f"%(strLabel,value))
def logInfo(time_step_beg,time_step_end,strLabel,fields,i,j,k):
    if(time_step_+1>=time_step_beg and time_step_+1<=time_step_end):
        print("%s:%.30f"%(strLabel,fields[i-1,j-1,k-1]))
def debug_pause(time_step_beg,time_step_end,strLabel):
    if(time_step_+1>=time_step_beg and time_step_+1<=time_step_end):
        print("%s"%(strLabel))
        time.sleep(1000)
def printSum(strLabel,fields):
    import numpy as np
    print('%s:%.30f'%(strLabel,np.sum(fields)))